import logging,yaml,yagmail
def sdsf():
    logging.basicConfig(filename='./data/kongfz.txt',level=logging.DEBUG,filemode='w+',format='%(asctime)s->%(thread)d->%(message)s')
def set_emil(filne):
    emil=yagmail.SMTP(host='smtp.qq.com',user='2410811597@qq.com',password='uulxfswthtmedihb')
    emil.send(to='2410811597@qq.com',subject='吗建壮',contents='吗建壮',attachments=filne)
def jey_set_yaml(files):
    with open(files,'r',encoding='utf-8')as f:
        return yaml.safe_load(f)